import request from '@/utils/request'

// 查询文件传输列表
export function listTransfer(query) {
  return request({
    url: '/system/transfer/list',
    method: 'get',
    params: query
  })
}

// 查询文件传输详细
export function getTransfer(fileId) {
  return request({
    url: '/system/transfer/' + fileId,
    method: 'get'
  })
}

// 新增文件传输
export function addTransfer(data) {
  return request({
    url: '/system/transfer',
    method: 'post',
    data: data
  })
}

// 修改文件传输
export function updateTransfer(data) {
  return request({
    url: '/system/transfer',
    method: 'put',
    data: data
  })
}

// 删除文件传输
export function delTransfer(fileId) {
  return request({
    url: '/system/transfer/' + fileId,
    method: 'delete'
  })
}
